import {
  getLocalStorage,
  removeLocalStorage
} from '@/assets/js/storage'
import { isLogin } from '@/assets/js/isLogin'

export default function relogin () {
  const path = getLocalStorage('authUrl')
  removeLocalStorage('loginStatus') // 重置登录状态
  removeLocalStorage('loginDate') // 重置登录时间
  removeLocalStorage('avatar') // 重置头像
  removeLocalStorage('userName') // 重置用户名
  isLogin(path)
}
